package com.arsn.myf.system.service.impl;

import com.arsn.myf.system.entity.ApiLog;
import com.arsn.myf.system.mapper.ApiLogMapper;
import com.arsn.myf.system.service.ApiLogService;
import com.arsn.myf.system.vo.ApiLogVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * 接口操作日志实现层
 * @author zhongrj
 */
@Service
public class ApiLogServiceImpl extends ServiceImpl<ApiLogMapper, ApiLog> implements ApiLogService {

    /**
     * 自定义查询接口操作日志分页数据
     * @param page
     * @param apiLog
     * @return
     */
    @Override
    public IPage<ApiLogVO> selectPageApiLogList(Page<ApiLogVO> page, ApiLogVO apiLog) {
        return page.setRecords(baseMapper.selectPageApiLogList(page,apiLog));
    }

}
